<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${servicePackage}.mapper.${className}Mapper">

    <#if isServerEntity>
        <select id="select${className}" resultType="${pojoPackage}.entity.${className}">
            SELECT *
            FROM ${tableName}
            WHERE 1=1
            AND is_delete=FALSE
            ORDER BY create_time DESC
        </select>
    </#if>

</mapper>